angular.module("myApp", ["ionic", "myApp.controllers"])
    .config(["$stateProvider", "$urlRouterProvider","$ionicConfigProvider", function ($stateProvider, $urlRouterProvider,$ionicConfigProvider) {
    	$ionicConfigProvider.platform.ios.tabs.style('standard'); 
	    $ionicConfigProvider.platform.ios.tabs.position('bottom');
	    $ionicConfigProvider.platform.android.tabs.style('standard');
	    $ionicConfigProvider.platform.android.tabs.position('bottom');
	    
	    $ionicConfigProvider.platform.ios.navBar.alignTitle('center'); 
	    $ionicConfigProvider.platform.android.navBar.alignTitle('center');
	    
	    $ionicConfigProvider.platform.ios.backButton.previousTitleText('').icon('ion-ios-arrow-thin-left');
	    $ionicConfigProvider.platform.android.backButton.previousTitleText('').icon('ion-android-arrow-back');        
	    
	    $ionicConfigProvider.platform.ios.views.transition('ios'); 
	    $ionicConfigProvider.platform.android.views.transition('android');
        $stateProvider     
            .state("home", {
				url: "/home",
			        templateUrl: "views/home.html",
			        controller: "Home"
		    })
//         $urlRouterProvider.otherwise("/tab/home");
        $urlRouterProvider.otherwise("/home");
    }]);